// 引入mitt
import mitt from 'mitt'
// 调用mitt得到emitter ，能绑定事件，解绑事件
let eventBus = mitt();
/*
eventBus.on('test1', () => {
    console.log('test1调用了')
})
eventBus.on('test2', () => {
    console.log('test2调用了')
})
setTimeout(()=>{
    eventBus.emit('test1')
    eventBus.emit('test2')
},20) 
*/
export default eventBus;